<%--
  Created by IntelliJ IDEA.
  User: xiaodoudou
  Date: 2020/11/5
  Time: 18:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<%String path = request.getContextPath();%>
<html>
<head>
    <title>Title</title>

</head>
<body>
<nav>
    <div class="top_big">
        <div class="top_left">
            <a href="#"><img src="<%=path%>/static/web/img/logo.png"></a>
            <div class="logo_zi">
                <h2>华电供热</h2>
                <h2>服务中心</h2>
                <p>HuaDianHeating</p>
            </div>
            <div class="clear"></div>
        </div>
        <c:if test="${sessionScope.loginUser!=null}" var="stat">
        <div class="top_right">
            <ul>
                <li class="active"><a href="index.html">首页</a></li>
                <li><a href="tuodong.html">安全公告</a></li>
                <li><a href="product_service.html">在线报修</a></li>
                <li><a href="news.html">问答专区</a></li>
                <li><a href="contact_us.html">关于我们</a></li>
                <li id="headimg">
                    <a href="javascipt:void(0)">
                        <img style="width: 50px;height:45px;margin-top: 10px;margin-left: 10px"
                             src="<%=path%>/static/web/userimage/${sessionScope.loginUser.pic}">
                    </a>
                <p style="margin-top: 3px;margin-left: 10px" >${sessionScope.loginUser.name}</p>
                </li>
<%--                <a href="<%=path%>/web/exit">退出</a>--%>
            </ul>
        </div>
        </c:if>
        <c:if test="${sessionScope.loginUser == null}">
        <div class="top_right">
            <ul>
                <li class="active"><a href="index.html">首页</a></li>
                <li><a href="tuodong.html">安全用热</a></li>
                <li><a href="product_service.html">在线报修</a></li>
                <li><a href="zhaopin.html">招聘</a></li>
                <li><a href="news.html">新闻</a></li>
                <li><a href="contact_us.html">关于我们</a></li>
                <li><a href="<%=path%>/user/login">登录/注册</a></li>

            </ul>
        </div>
        </c:if>

        <div class="clear"></div>
        <div>
</nav>
</body>

<script>
    // $(function () {
    //
    //     //鼠标放上的事件
    //     $("#headimg").mouseover(function () {
    //
    //         $("#headmenu").css("display","block");
    //     })
    //
    //     //鼠标移开的事件
    //     $("#headimg").mouseleave(function () {
    //
    //         $("#headmenu").css("display","none");
    //
    //     })
    // })
</script>
</html>
